<?php
/**
 * Created by PhpStorm.
 * User: xuho
 * Date: 2020-05-09
 * Time: 16:14
 */

namespace extend\map;


class Address
{
    /**
     * 腾讯接口
     * @param $apiKey
     * @param $address
     * @return mixed
     */
    public function txInfo($apiKey, $address)
    {
        $url = "https://apis.map.qq.com/ws/place/v1/suggestion?keyword={$address}&output=json&key={$apiKey}";
        return getRequest($url);
    }
}